﻿using CommonExtenControl.Enum;
using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CommonExtenControl.Model.Base
{
    public enum RecvDataType 
    {
       DeviceDate,
       FileDate
    }

    public class ModelDataBase : BindableBase
    {
        public string RecvDataTypeModel { set; get; }

        private string _IPAddress = "";

        public string IPAddress
        {
            get
            {
                return _IPAddress;
            }
            set
            {
                SetProperty(ref _IPAddress, value);
            }
        }

        private string _Port = "";

        public string Port
        {
            get
            {
                return _Port;
            }
            set
            {
                SetProperty(ref _Port, value);
            }
        }

        private string _PcSign = "";
        /// <summary>
        /// 唯一
        /// </summary>
        public string PcSign
        {
            get
            {
                return _PcSign;
            }
            set
            {
                SetProperty(ref _PcSign, value);
            }
        }

        private OperationType _CurrentOperationType = OperationType.Other;

        public OperationType CurrentOperationType
        {
            get
            {
                return _CurrentOperationType;
            }
            set
            {
                SetProperty(ref _CurrentOperationType, value);
            }
        }


        private OperationResultType _CurrentOperationResultTypee = OperationResultType.Other;

        public OperationResultType CurrentOperationResultTypee
        {
            get
            {
                return _CurrentOperationResultTypee;
            }
            set
            {
                SetProperty(ref _CurrentOperationResultTypee, value);
            }
        }
    }
}
